Skip to content

Improve tool verification exit handling#6

Merged
Pnwcomputers merged 1 commit intomainfrom
codex/apply-fixes-from-review-to-batch-and-ps1-files
Oct 31, 2025
Merged

Improve tool verification exit handling#6
Pnwcomputers merged 1 commit intomainfrom
codex/apply-fixes-from-review-to-batch-and-ps1-files

Conversation

@Pnwcomputers
Copy link
Copy Markdown
Owner

Summary

  • teach the PowerShell Test-ToolVerification helper to return a success flag and cope with unexpected status codes
  • propagate the verification result back to the batch launcher with distinct exit codes and clearer messaging for failures or warnings

Testing

  • not run (Windows-specific batch/PowerShell scripts)

https://chatgpt.com/codex/tasks/task_e_69050732fb1c8325ae986af05e8091bf

@Pnwcomputers Pnwcomputers merged commit d47b6f8 into main Oct 31, 2025
3 of 5 checks passed
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread SystemTester.ps1
Comment on lines 165 to +169
$totalIssues = $stats.BAD_SIZE + $stats.BAD_SIGNATURE + $stats.MISSING + $stats.CHECK_FAILED
if ($totalIssues -eq 0 -and $stats.VALID_MS -gt 0) {
if ($totalIssues -eq 0 -and ($stats.VALID_MS + $stats.VALID_OTHER + $stats.NOT_SIGNED) -gt 0) {
Write-Host "STATUS: All present tools are verified and safe to use" -ForegroundColor Green
} elseif ($totalIssues -gt 0) {
Write-Host ""
return $true
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Keep unsigned tool sets as a warning

The new success condition returns $true when there are no size/signature errors and any tools were processed, even if every tool ended up in the NOT_SIGNED or VALID_OTHER buckets. In that scenario the batch launcher now exits with code 0 and prints “All tools validated successfully”, which implies the binaries are trustworthy even though none of them carry a Microsoft signature. The previous logic withheld a success status unless at least one Microsoft-signed tool was found. To avoid a false sense of safety, the function should still return $false (and therefore exit with code 2) when VALID_MS is zero so the caller can flag the result as a warning.

Useful? React with 👍 / 👎.

Pnwcomputers added a commit that referenced this pull request Oct 31, 2025
* Update SystemTester.bat

* Update SystemTester.ps1

* Update SystemTester.bat

* Update README.md

* Update README.md

* Update README.md

* Update SystemTester.bat

* Update SystemTester.ps1

* Update README.md

* Create .gitkeep

* Create CODE_OF_CONDUCT.md

* Create CONTRIBUTING.md

* Create PULL_REQUEST_TEMPLATE.md

* Update CONTRIBUTING.md

* Create bug_report.md

* Create config.yml

* Create deployment_issue.md

* Create feature_request.md

* Create implementation-question.md

* Create COMPATABILITY.md

* Create INSTALLATION.md

* Create TROUBLESHOOTING.md

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

* Delete CONTRIBUTING.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Handle both script names in batch launcher (#3)

* Add network speed and update visibility to reports (#4)

* Improve GPU detection and batch reliability (#5)

* Handle tool verification exit statuses (#6)

* Update README.md

* Fix host:port string interpolation in latency test (#7)

* refactor: use approved verbs and fix analyzer issues

- Clean-ToolOutput -> Convert-ToolOutput (+call site)
- Run-Tool -> Invoke-Tool (+call sites)
- Generate-Report -> New-Report (+call sites)
- Replace  param with  (alias Args)
- Avoid  automatic var in PsPing
- Fix  comparison order
- Remove unused  var
- Repair GPU submenu strings causing parse error
@Pnwcomputers Pnwcomputers mentioned this pull request Oct 31, 2025
9 tasks
Pnwcomputers added a commit that referenced this pull request Oct 31, 2025
* Update SystemTester.bat

* Update SystemTester.ps1

* Update SystemTester.bat

* Update README.md

* Update README.md

* Update README.md

* Update SystemTester.bat

* Update SystemTester.ps1

* Update README.md

* Create .gitkeep

* Create CODE_OF_CONDUCT.md

* Create CONTRIBUTING.md

* Create PULL_REQUEST_TEMPLATE.md

* Update CONTRIBUTING.md

* Create bug_report.md

* Create config.yml

* Create deployment_issue.md

* Create feature_request.md

* Create implementation-question.md

* Create COMPATABILITY.md

* Create INSTALLATION.md

* Create TROUBLESHOOTING.md

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

* Delete CONTRIBUTING.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Handle both script names in batch launcher (#3)

* Add network speed and update visibility to reports (#4)

* Improve GPU detection and batch reliability (#5)

* Handle tool verification exit statuses (#6)

* Update README.md

* Fix host:port string interpolation in latency test (#7)

* refactor: use approved verbs and fix analyzer issues

- Clean-ToolOutput -> Convert-ToolOutput (+call site)
- Run-Tool -> Invoke-Tool (+call sites)
- Generate-Report -> New-Report (+call sites)
- Replace  param with  (alias Args)
- Avoid  automatic var in PsPing
- Fix  comparison order
- Remove unused  var
- Repair GPU submenu strings causing parse error
Pnwcomputers added a commit that referenced this pull request Oct 31, 2025
* Update SystemTester.bat

* Update SystemTester.ps1

* Update SystemTester.bat

* Update README.md

* Update README.md

* Update README.md

* Update SystemTester.bat

* Update SystemTester.ps1

* Update README.md

* Create .gitkeep

* Create CODE_OF_CONDUCT.md

* Create CONTRIBUTING.md

* Create PULL_REQUEST_TEMPLATE.md

* Update CONTRIBUTING.md

* Create bug_report.md

* Create config.yml

* Create deployment_issue.md

* Create feature_request.md

* Create implementation-question.md

* Create COMPATABILITY.md

* Create INSTALLATION.md

* Create TROUBLESHOOTING.md

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

* Delete CONTRIBUTING.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Handle both script names in batch launcher (#3)

* Add network speed and update visibility to reports (#4)

* Improve GPU detection and batch reliability (#5)

* Handle tool verification exit statuses (#6)

* Update README.md

* Fix host:port string interpolation in latency test (#7)

* refactor: use approved verbs and fix analyzer issues

- Clean-ToolOutput -> Convert-ToolOutput (+call site)
- Run-Tool -> Invoke-Tool (+call sites)
- Generate-Report -> New-Report (+call sites)
- Replace  param with  (alias Args)
- Avoid  automatic var in PsPing
- Fix  comparison order
- Remove unused  var
- Repair GPU submenu strings causing parse error
Pnwcomputers added a commit that referenced this pull request Oct 31, 2025
* Update SystemTester.bat

* Update SystemTester.ps1

* Update SystemTester.bat

* Update README.md

* Update README.md

* Update README.md

* Update SystemTester.bat

* Update SystemTester.ps1

* Update README.md

* Create .gitkeep

* Create CODE_OF_CONDUCT.md

* Create CONTRIBUTING.md

* Create PULL_REQUEST_TEMPLATE.md

* Update CONTRIBUTING.md

* Create bug_report.md

* Create config.yml

* Create deployment_issue.md

* Create feature_request.md

* Create implementation-question.md

* Create COMPATABILITY.md

* Create INSTALLATION.md

* Create TROUBLESHOOTING.md

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

* Delete CONTRIBUTING.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Handle both script names in batch launcher (#3)

* Add network speed and update visibility to reports (#4)

* Improve GPU detection and batch reliability (#5)

* Handle tool verification exit statuses (#6)

* Update README.md

* Fix host:port string interpolation in latency test (#7)

* refactor: use approved verbs and fix analyzer issues

- Clean-ToolOutput -> Convert-ToolOutput (+call site)
- Run-Tool -> Invoke-Tool (+call sites)
- Generate-Report -> New-Report (+call sites)
- Replace  param with  (alias Args)
- Avoid  automatic var in PsPing
- Fix  comparison order
- Remove unused  var
- Repair GPU submenu strings causing parse error
Pnwcomputers added a commit that referenced this pull request Oct 31, 2025
* VS AI Update (#8)

* Update SystemTester.bat

* Update SystemTester.ps1

* Update SystemTester.bat

* Update README.md

* Update README.md

* Update README.md

* Update SystemTester.bat

* Update SystemTester.ps1

* Update README.md

* Create .gitkeep

* Create CODE_OF_CONDUCT.md

* Create CONTRIBUTING.md

* Create PULL_REQUEST_TEMPLATE.md

* Update CONTRIBUTING.md

* Create bug_report.md

* Create config.yml

* Create deployment_issue.md

* Create feature_request.md

* Create implementation-question.md

* Create COMPATABILITY.md

* Create INSTALLATION.md

* Create TROUBLESHOOTING.md

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

* Delete CONTRIBUTING.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Handle both script names in batch launcher (#3)

* Add network speed and update visibility to reports (#4)

* Improve GPU detection and batch reliability (#5)

* Handle tool verification exit statuses (#6)

* Update README.md

* Fix host:port string interpolation in latency test (#7)

* refactor: use approved verbs and fix analyzer issues

- Clean-ToolOutput -> Convert-ToolOutput (+call site)
- Run-Tool -> Invoke-Tool (+call sites)
- Generate-Report -> New-Report (+call sites)
- Replace  param with  (alias Args)
- Avoid  automatic var in PsPing
- Fix  comparison order
- Remove unused  var
- Repair GPU submenu strings causing parse error

* fix: address VS warnings

- Rename Run-Tool -> Invoke-Tool
- Replace use of  with
- Use Convert-ToolOutput in tool runner
- Keep -Args support via [Alias('Args')]
Pnwcomputers added a commit that referenced this pull request Oct 31, 2025
* VS AI Update (#8)

* Update SystemTester.bat

* Update SystemTester.ps1

* Update SystemTester.bat

* Update README.md

* Update README.md

* Update README.md

* Update SystemTester.bat

* Update SystemTester.ps1

* Update README.md

* Create .gitkeep

* Create CODE_OF_CONDUCT.md

* Create CONTRIBUTING.md

* Create PULL_REQUEST_TEMPLATE.md

* Update CONTRIBUTING.md

* Create bug_report.md

* Create config.yml

* Create deployment_issue.md

* Create feature_request.md

* Create implementation-question.md

* Create COMPATABILITY.md

* Create INSTALLATION.md

* Create TROUBLESHOOTING.md

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

* Delete CONTRIBUTING.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Handle both script names in batch launcher (#3)

* Add network speed and update visibility to reports (#4)

* Improve GPU detection and batch reliability (#5)

* Handle tool verification exit statuses (#6)

* Update README.md

* Fix host:port string interpolation in latency test (#7)

* refactor: use approved verbs and fix analyzer issues

- Clean-ToolOutput -> Convert-ToolOutput (+call site)
- Run-Tool -> Invoke-Tool (+call sites)
- Generate-Report -> New-Report (+call sites)
- Replace  param with  (alias Args)
- Avoid  automatic var in PsPing
- Fix  comparison order
- Remove unused  var
- Repair GPU submenu strings causing parse error

* fix: address VS warnings

- Rename Run-Tool -> Invoke-Tool
- Replace use of  with
- Use Convert-ToolOutput in tool runner
- Keep -Args support via [Alias('Args')]
@Pnwcomputers Pnwcomputers deleted the codex/apply-fixes-from-review-to-batch-and-ps1-files branch May 2, 2026 21:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant